package mvc;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;


public class ViewNewUser {
	protected Shell shell;
	public Shell shellNewUser;
	public Button btnNewButton;


	public ViewNewUser(MainController controller){		
	
		
        shellNewUser = new Shell(controller.mainView.shell);
        shellNewUser.setLocation(controller.mainView.shell.getLocation().x + 40, controller.mainView.shell.getLocation().y + 40);
        shellNewUser.setText("New User");
        shellNewUser.setSize(350, 200);	
        shellNewUser.addListener(SWT.Dispose,controller);
        
        Text text = new Text(shellNewUser, SWT.BORDER);
        text.setBounds(24, 29, 151, 19);
        
        Text  text_1 = new Text(shellNewUser, SWT.BORDER);
        text_1.setBounds(24, 85, 151, 19);	
        
        Text  text_2 = new Text(shellNewUser, SWT.BORDER);
        text_2.setBounds(24, 126, 151, 19); 
        
		btnNewButton = new Button(shellNewUser, SWT.NONE);
		btnNewButton.addListener(SWT.Selection, controller);
		
		btnNewButton.setBounds(252, 133, 68, 23);
		btnNewButton.setText("Register");
		
		Label lblEnterYourName = new Label(shellNewUser, SWT.NONE);
		lblEnterYourName.setBounds(23, 10, 110, 13);
		lblEnterYourName.setText("Enter new username");
		
		Label label = new Label(shellNewUser, SWT.NONE);
		label.setText("Enter new password");
		label.setBounds(24, 66, 110, 13);
		
		Label label_1 = new Label(shellNewUser, SWT.NONE);
		label_1.setText("Re-enter new password");
		label_1.setBounds(24, 110, 126, 13);
        shellNewUser.open();        		
      }	
}
